home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990 September: Essentials 4 / ADC Developer CD (1990-09) [Essentials 4]_iso / Developer Essentials 4.iso / d e v e l o p / develop 3 code / ISO 9660 & High Sierra / iso9660 ƒ / DialogUtils.h < prev    next >
MacBinary  |  1990-04-16  |  1.9 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Apr 16 10:58:56 1990, modified Mon Apr 16 10:58:56 1990, creator Think C, type ASCII, 1343 bytes "DialogUtils.h" , at 0x5bf 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 44 69 61 6c 6f 67 | 55 74 69 6c 73 2e 68 00 |..Dialog|Utils.h.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 80 00 40 00 |.TEXTKAH|L.....@.|
|00000050| 00 00 00 00 00 05 3f 00 | 00 01 1e a2 4f 8e 30 a2 |......?.|....O.0.|
|00000060| 4f 8e 30 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |O.0.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c0 90 00 00 |........|........|
|00000080| 2f 2a 0d 66 72 6f 6d 20 | 65 6e 67 62 65 72 40 67 |/*.from |engber@g|
|00000090| 75 6d 62 61 6c 6c 2e 69 | 6c 73 2e 6e 77 75 2e 65 |umball.i|ls.nwu.e|
|000000a0| 64 75 20 28 4d 69 6b 65 | 20 45 6e 67 62 65 72 29 |du (Mike| Engber)|
|000000b0| 3a 0d 0d 54 68 61 6e 6b | 73 20 66 6f 72 20 61 6c |:..Thank|s for al|
|000000c0| 6c 20 74 68 65 20 72 65 | 70 6c 79 73 20 74 6f 20 |l the re|plys to |
|000000d0| 6d 79 20 63 65 6e 74 65 | 72 69 6e 67 20 44 4c 4f |my cente|ring DLO|
|000000e0| 47 2f 41 4c 52 54 20 71 | 75 65 73 74 69 6f 6e 2e |G/ALRT q|uestion.|
|000000f0| 20 49 20 75 73 65 64 20 | 74 68 65 0d 62 65 73 74 | I used |the.best|
|00000100| 20 69 64 65 61 73 20 74 | 6f 20 73 79 6e 74 68 65 | ideas t|o synthe|
|00000110| 73 69 7a 65 20 6d 79 20 | 73 6f 6c 75 74 69 6f 6e |size my |solution|
|00000120| 20 77 68 69 63 68 20 49 | 20 74 68 69 6e 6b 20 65 | which I| think e|
|00000130| 6c 65 67 61 6e 74 20 65 | 6e 6f 75 67 68 20 74 6f |legant e|nough to|
|00000140| 20 62 65 0d 77 6f 72 74 | 68 20 73 68 61 72 69 6e | be.wort|h sharin|
|00000150| 67 2e 20 41 74 74 61 63 | 68 65 64 20 61 72 65 20 |g. Attac|hed are |
|00000160| 74 68 65 20 72 65 6c 65 | 76 61 6e 74 20 70 6f 72 |the rele|vant por|
|00000170| 74 69 6f 6e 73 20 6f 66 | 20 6d 79 20 2e 68 20 26 |tions of| my .h &|
|00000180| 20 2e 63 20 66 69 6c 65 | 73 2e 0d 0d 41 20 63 6f | .c file|s...A co|
|00000190| 75 70 6c 65 20 6f 66 20 | 6e 6f 74 65 73 3a 0d 0d |uple of |notes:..|
|000001a0| 53 65 76 65 72 61 6c 20 | 70 65 6f 70 6c 65 60 73 |Several |people`s|
|000001b0| 20 73 6f 6c 75 74 69 6f | 6e 73 20 62 75 72 6e 65 | solutio|ns burne|
|000001c0| 64 20 69 6e 20 74 68 65 | 20 72 73 72 63 20 69 64 |d in the| rsrc id|
|000001d0| 73 20 6f 66 20 74 68 65 | 20 73 74 61 6e 64 61 72 |s of the| standar|
|000001e0| 64 0d 66 69 6c 65 20 64 | 69 61 6c 6f 67 73 2e 20 |d.file d|ialogs. |
|000001f0| 59 6f 75 20 6d 61 79 20 | 77 61 6e 74 20 74 6f 20 |You may |want to |
|00000200| 6e 6f 74 65 20 74 68 61 | 74 20 74 68 65 72 65 20 |note tha|t there |
|00000210| 61 72 65 20 6e 61 6d 65 | 64 20 63 6f 6e 73 74 61 |are name|d consta|
|00000220| 6e 74 73 20 66 6f 72 0d | 74 68 65 73 65 20 76 61 |nts for.|these va|
|00000230| 6c 75 65 73 3a 20 70 75 | 74 44 6c 67 49 44 20 20 |lues: pu|tDlgID |
|00000240| 26 20 67 65 74 44 6c 67 | 49 44 2e 0d 0d 41 6c 6c |& getDlg|ID...All|
|00000250| 20 74 68 65 20 73 6f 6c | 75 74 69 6f 6e 73 20 49 | the sol|utions I|
|00000260| 20 77 61 73 20 73 65 6e | 74 20 75 73 65 64 20 73 | was sen|t used s|
|00000270| 63 72 65 65 6e 42 69 74 | 73 2e 62 6f 75 6e 64 73 |creenBit|s.bounds|
|00000280| 2e 20 49 73 20 74 68 69 | 73 20 77 68 61 74 20 79 |. Is thi|s what y|
|00000290| 6f 75 0d 77 61 6e 74 20 | 69 6e 20 61 20 6d 75 6c |ou.want |in a mul|
|000002a0| 74 69 2d 6d 6f 6e 69 74 | 6f 72 20 73 69 74 75 61 |ti-monit|or situa|
|000002b0| 74 69 6f 6e 3f 20 49 66 | 20 6e 6f 74 2c 20 77 68 |tion? If| not, wh|
|000002c0| 61 74 20 73 68 6f 75 6c | 64 20 79 6f 75 20 64 6f |at shoul|d you do|
|000002d0| 3f 0d 0d 46 65 65 6c 20 | 66 72 65 65 20 74 6f 20 |?..Feel |free to |
|000002e0| 75 73 65 2f 6d 6f 64 69 | 66 79 2f 63 6f 6d 6d 65 |use/modi|fy/comme|
|000002f0| 6e 74 2d 6f 6e 20 74 68 | 69 73 20 63 6f 64 65 2c |nt-on th|is code,|
|00000300| 20 65 73 70 65 63 69 61 | 6c 6c 79 20 69 66 20 79 | especia|lly if y|
|00000310| 6f 75 20 6e 6f 74 69 63 | 65 0d 61 6e 79 20 62 75 |ou notic|e.any bu|
|00000320| 67 73 20 6f 72 20 71 75 | 65 73 74 69 6f 6e 61 62 |gs or qu|estionab|
|00000330| 6c 65 20 70 72 61 63 74 | 69 63 65 73 2e 0d 0d 2d |le pract|ices...-|
|00000340| 4d 45 0d 2a 2f 0d 0d 2f | 2a 20 44 69 61 6c 6f 67 |ME.*/../|* Dialog|
|00000350| 55 74 69 6c 73 2e 68 20 | 2a 2f 0d 0d 2f 2a 20 52 |Utils.h |*/../* R|
|00000360| 65 74 75 72 6e 20 74 6f | 70 4c 65 66 74 20 70 6f |eturn to|pLeft po|
|00000370| 69 6e 74 20 74 6f 20 63 | 65 6e 74 65 72 20 73 74 |int to c|enter st|
|00000380| 61 6e 64 61 72 64 20 66 | 69 6c 65 20 64 69 61 6c |andard f|ile dial|
|00000390| 6f 67 73 2e 20 2a 2f 0d | 65 78 74 65 72 6e 20 50 |ogs. */.|extern P|
|000003a0| 6f 69 6e 74 20 44 55 5f | 53 74 64 50 75 74 57 68 |oint DU_|StdPutWh|
|000003b0| 65 72 65 28 76 6f 69 64 | 29 3b 0d 65 78 74 65 72 |ere(void|);.exter|
|000003c0| 6e 20 50 6f 69 6e 74 20 | 44 55 5f 53 74 64 47 65 |n Point |DU_StdGe|
|000003d0| 74 57 68 65 72 65 28 76 | 6f 69 64 29 3b 0d 0d 2f |tWhere(v|oid);../|
|000003e0| 2a 0d 20 2a 20 50 72 65 | 2d 6c 6f 61 64 20 61 6e |*. * Pre|-load an|
|000003f0| 64 20 63 65 6e 74 65 72 | 20 41 4c 52 54 2f 44 4c |d center| ALRT/DL|
|00000400| 4f 47 20 74 65 6d 70 6c | 61 74 65 20 72 65 73 6f |OG templ|ate reso|
|00000410| 75 72 63 65 73 2e 20 43 | 68 61 6e 67 65 73 20 64 |urces. C|hanges d|
|00000420| 6f 20 6e 6f 74 20 61 66 | 66 65 63 74 0d 20 2a 20 |o not af|fect. * |
|00000430| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 66 69 | the res|ource fi|
|00000440| 6c 65 2c 20 62 75 74 20 | 69 66 20 74 68 65 20 41 |le, but |if the A|
|00000450| 4c 52 54 2f 44 4c 4f 47 | 20 69 73 20 63 72 65 61 |LRT/DLOG| is crea|
|00000460| 74 65 64 20 73 6f 6f 6e | 20 61 66 74 65 72 20 74 |ted soon| after t|
|00000470| 68 65 20 63 61 6c 6c 0d | 20 2a 20 20 69 74 20 77 |he call.| * it w|
|00000480| 69 6c 6c 20 75 73 65 20 | 74 68 65 20 6d 6f 64 69 |ill use |the modi|
|00000490| 66 69 65 64 20 28 63 65 | 6e 74 65 72 65 64 29 20 |fied (ce|ntered) |
|000004a0| 74 65 6d 70 6c 61 74 65 | 20 69 6e 20 6d 65 6d 6f |template| in memo|
|000004b0| 72 79 2e 20 42 6f 74 68 | 20 72 6f 75 74 69 6e 65 |ry. Both| routine|
|000004c0| 73 0d 20 2a 20 20 72 65 | 74 75 72 6e 20 74 68 65 |s. * re|turn the|
|000004d0| 20 70 61 73 73 65 64 20 | 72 73 72 63 20 69 64 20 | passed |rsrc id |
|000004e0| 74 6f 20 61 6c 6c 6f 77 | 20 63 61 6c 6c 73 20 6c |to allow| calls l|
|000004f0| 69 6b 65 3a 0d 20 2a 20 | 20 20 20 20 20 41 6c 65 |ike:. * | Ale|
|00000500| 72 74 28 44 55 5f 43 65 | 6e 74 65 72 41 4c 52 54 |rt(DU_Ce|nterALRT|
|00000510| 28 61 6c 65 72 74 49 44 | 29 2c 66 69 6c 74 65 72 |(alertID|),filter|
|00000520| 29 3b 0d 20 2a 20 20 20 | 20 20 20 47 65 74 4e 65 |);. * | GetNe|
|00000530| 77 44 69 61 6c 6f 67 28 | 44 55 5f 43 65 6e 74 65 |wDialog(|DU_Cente|
|00000540| 72 44 4c 4f 47 28 64 6c | 6f 67 49 44 29 2c 64 53 |rDLOG(dl|ogID),dS|
|00000550| 74 6f 72 61 67 65 2c 62 | 65 68 69 6e 64 57 69 6e |torage,b|ehindWin|
|00000560| 64 6f 77 29 3b 0d 20 2a | 2f 0d 65 78 74 65 72 6e |dow);. *|/.extern|
|00000570| 20 73 68 6f 72 74 20 44 | 55 5f 43 65 6e 74 65 72 | short D|U_Center|
|00000580| 41 4c 52 54 28 73 68 6f | 72 74 20 72 73 72 63 49 |ALRT(sho|rt rsrcI|
|00000590| 64 29 3b 0d 65 78 74 65 | 72 6e 20 73 68 6f 72 74 |d);.exte|rn short|
|000005a0| 20 44 55 5f 43 65 6e 74 | 65 72 44 4c 4f 47 28 73 | DU_Cent|erDLOG(s|
|000005b0| 68 6f 72 74 20 72 73 72 | 63 49 64 29 3b 0d 0d 00 |hort rsr|cId);...|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000610| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000620| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000630| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+